package com.iphone.xkyy.constant;

import org.springframework.context.annotation.Configuration;

/**
 * 常量
 */
@Configuration
public  class ConstantUtils {

    /**
     * history 专门用来保存所有消息读取记录
     */

    //队列名称
    public  final static String MSG_HISTORY_QUEUE = "msg_history_queue";
    //交换机名称
    public  final static String MSG_HISTORY_EXCHANGE = "msg_history_exchange";
    // routingKey
    public  final static String MSG_HISTRY_ROUTING_KEY = "msg_histry_routing_key";


    /**
     * push websocket队列参数
     */
    //队列名称
    public   final static String MSG_STORE_QUEUE = "msg_store_queue";
    //交换机名称
    public  final static String MSG_STORE_EXCHANGE = "msg_store_exchange";
    // routingKey
    public  final static String MSG_STORE_ROUTING_KEY = "msg_store_routing_key";


    /**
     * 短信队列参数
     */
    //队列名称
    public   final static String MSG_DUANX_QUEUE = "msg_duanx_queue";
    //交换机名称
    public  final static String MSG_DUANX_EXCHANGE = "msg_duanx_exchange";
    // routingKey
    public  final static String MSG_DUANX_ROUTING_KEY = "msg_duanx_routing_key";


    /**
     * push通知栏队列参数
     */
    //队列名称
    public   final static String MSG_NOTIFBAR_QUEUE = "msg_notifBar_queue";
    //交换机名称
    public  final static String MSG_NOTIFBAR_EXCHANGE = "msg_notifBar_exchange";
    // routingKey
    public  final static String MSG_NOTIFBAR_ROUTING_KEY = "msg_notifBar_routing_key";


    /**
     * 小程序队列参数
     */
    //队列名称
    public   final static String MSG_APPLET_QUEUE = "msg_applet_queue";
    //交换机名称
    public  final static String MSG_APPLET_EXCHANGE = "msg_applet_exchange";
    // routingKey
    public  final static String MSG_APPLET_ROUTING_KEY = "msg_applet_routing_key";

    /**
     * 公众号队列参数
     */
    //队列名称
    public   final static String MSG_THEPUB_QUEUE = "msg_thepub_queue";
    //交换机名称
    public  final static String MSG_THEPUB_EXCHANGE = "msg_thepub_exchange";
    // routingKey
    public  final static String MSG_THEPUB_ROUTING_KEY = "msg_thepub_routing_key";

    //消息已读未读
    public final static String READ="1";//已读
    public final static String NOREAD="2";//未读

    //消息类型
    public final static String MSG_TYPE_TIMER="1";//定时消息
    public final static String MSG_TYPE_AUTO="2";//自动触发

    //消息发送状态
    //发送成功
    public final static String MSG_SEND_SUCC="1";
    //发送失败
    public final static String MSG_SEND_ERR="2";
    //待发送
    public final static String MSG_SEND_WAIT="3";



    //发送方式：push
    public final static String MSG_SEND_PUSH="1";
    //短信
    public final static String MSG_SEND_DUANX="2";


    //发布范围：
    //全部门店
    public final static String MSG_RANGE_ALL="1";
    //直营
    public final static String MSG_RANGE_DIRE="2";
    //加盟
    public final static String MSG_RANGE_JOIN="3";

    //消息平台
    //发送saas门店
    public final static String MSG_SEND_SHOP="1";
    //发送c端小程序
    public final static String MSG_SEND_APPLET="2";
    //发送到公众号
    public final static String MSG_SEND_THEPUB="3";
    //发送到app通知栏
    public final static String MSG_SEND_NOTIFBAR="4";
    //发送零道小程序
    public final static String MSG_SEND_ZERO_APP="5";

    //通知类型：
    // 1召回公告、
    public final static String MSG_TYPE_ANN_BACK="1";
    // 2集团公告、
    public final static String MSG_TYPE_ANN_COMPANY="2";
    // 3系统更新，
    public final static String MSG_TYPE_SYS_UPDATE="3";
    // 4系统维护，
    public final static String MSG_TYPE_SYS_UPHOLD="4";
    // 5其他消息
    public final static String MSG_TYPE_MS_OTHER="5";
    // 6交易消息
    public final static String MSG_TYPE_MS_TRADE="6";



    //发布状态
    //-1已撤销
    public final static String MSG_SEND_STATUS_B="-1";
    //1已发布
    public final static String MSG_SEND_STATUS_Y="1";
    //2待发布
    public final static String MSG_SEND_STATUS_W="2";
    //3已作废
    public final static String MSG_SEND_STATUS_F="3";
    //4草稿
    public final static String MSG_SEND_STATUS_C="4";



    //时间周期
    public final static String MSG_TIME_TYPE_MONTH="每月";
    public final static String MSG_TIME_TYPE_WORK="每周";
    public final static String MSG_TIME_TYPE_DAY="每日";
    public final static String MSG_TIME_TYPE_TODAY="当天";



   ;
}
